<%--
  Created by IntelliJ IDEA.
  User: guobenqi
  Date: 2021/6/6
  Time: 10:00
  To change this template use File | Settings | File Templates.
--%>
<%--
  Created by IntelliJ IDEA.
  User: guobenqi
  Date: 2021/5/29
  Time: 22:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <!-- 1. 导入CSS的全局样式 -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-2.1.0.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <title>修改学生信息</title>

    <script>
        $(function () {
            $("#log-out").click(function () {
                location.href="${pageContext.request.contextPath}/logout";

            })

        })
    </script>
</head>
<body>
<div  class="container">

    <div style="position: absolute;left: 20px;top: 10px;font-size: 20px;font-weight:bold;color: #262b8a;z-index: 999"
         id="log-out">退出登录</div>

    <div style="position: absolute;right: 20px;top: 10px;font-size: 20px;color: #262b8a;z-index: 999">${ pageContext.getSession().getAttribute("user").getUsername()},欢迎你</div>
    <h1 style="text-align: center;color:orangered;">我的基本信息</h1>



    <form action="/updateStudent" method="post">
        <input type="hidden" name="id" value="${student.id}">
        <div class="form-group">
            <label for="exampleInputEmail1">学号</label>
            <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="username" value="${student.username}" disabled>
        </div>
        <div class="form-group">
            <label for="name">姓名</label>
            <input type="text" class="form-control" id="name" aria-describedby="emailHelp" name="sName" value="${student.sName}" disabled>
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">学院</label>
            <input type="text" id="exampleInputPassword1" class="form-control" name="sCollege" value="${student.sCollege}" disabled>

            </input>
        </div>

        <div class="form-group">
            <label for="exa">班级</label>
            <input type="text" id="exa" class="form-control" name="cId" value="${student.cName}" disabled>
            </input>
        </div>
        <div class="form-group">
            <label for="pass">专业</label>
            <input id="pass" class="form-control" name="sDepartment" value="${student.sDepartment}" disabled>
            </input>
        </div>
        <div class="form-group">
            <label for="sex">性别</label>
            <input id="sex" class="form-control" name="sSex" value="${student.sSex}" disabled>
            </input>
        </div>
        <div class="form-group">
            <label for="age">年龄</label>
            <input id="age" class="form-control" name="sAge" value="${student.sAge}" disabled>
            </input>
        </div>
        <div class="form-group">
            <label for="examp">民族</label>
            <input type="text" class="form-control" id="examp" aria-describedby="emailHelp" name="sNation" value="${student.sNation}" disabled>
        </div>
        <div class="form-group">
            <label for="ex">家庭住址</label>
            <input type="text" class="form-control" id="ex" aria-describedby="emailHelp" name="sAddress" value="${student.sAddress}" disabled>
        </div>

    </form>
</div>

</body>
<style type="text/css">
    body{
        width: 100%;
        height: 100%;
        background: #f7f7f7;
        background-size: cover;
    }
    /*.container{*/
    /*    width: 600px;*/
    /*    margin: 10px auto;*/
    /*    background: #8a6d3b;*/
    /*    color: #4cae4c;*/
    /*    font-size: 15px;*/
    /*    padding: 5px 50px;*/
    /*    border-radius: 10px;*/
    /*}*/

</style>
</html>
